<!DOCTYPE html>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
  document.getElementById('label').textContent = 'Alternate longer text';
}, true);
</script>
Tests repaint of descendants of right-aligned fixed-position element.
Passes if the text "Button Title" is fully visible in the button.
<div style="position: fixed; right: 0; text-align: right;">
  <span id="label">Initial text</span>
  <input value="Button Title" type="button">
</div>
